package org.hncors.gnssparse;

import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;

import com.southgnss.connect.DeviceParManage;
import com.southgnss.network.NetConfigNtripEvent;

import de.greenrobot.event.EventBus;

public class DeviceInfoActivity extends AppCompatActivity {

    private TextView deviceInfoView;
    private DeviceParManage dPM;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_device_info);
        deviceInfoView = (TextView) findViewById(R.id.tv_deviceinfo);
        dPM = DeviceParManage.GetInstance();
    }

    public void getDeviceInfo(View view) {
        deviceInfoView.setText("固件版本： " + dPM.GetRTKAppVer() + "\r\n"
                + "工作模式： " + dPM.GetCurSysMode() + "\r\n"
                + "电池剩余:  " + dPM.getPowerFree() + "%");
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }

}
